package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 执行日志业务对象 js_log
 *
 * @author zhu
 * @date 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JsLog.class, reverseConvertGenerate = false)
public class JsLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用例id
     */
    @NotNull(message = "用例id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long executeId;

    /**
     * 执行结果
     */
    @NotBlank(message = "执行结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String result;

    /**
     * 关键字
     */
    private String keyword;


}
